﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class PalhetaPC
    {
        Texture2D texturaPalhetaPC;
        Rectangle posicaoPalhetaPC;

        public PalhetaPC(ContentManager Content)
        {
            posicaoPalhetaPC = new Rectangle(750,350,40,270);
            texturaPalhetaPC = Content.Load<Texture2D>("palhetaPC");
        }

        public void Update(GameTime gameTime, KeyboardState tecladoAtual, KeyboardState tecladoAnterior, Rectangle recColisao, Vector2 velocidade)
        {
            //if (posicaoPalhetaPC.Intersects(recColisao))
            //{
            //    //recColisao.X *= -1;
            //    //recColisao.Y *= -1;

            //    velocidade.X *= -1;
            //    velocidade.Y *= -1;
            //} 
        }

        public void Draw(SpriteBatch spriteBatch)
        {
          spriteBatch.Draw(texturaPalhetaPC, posicaoPalhetaPC, Color.White);
        }
    }
}
